﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StyleMVVM.Data;
using StyleMVVM.DataService.DotNet.Adapters;
using StyleMVVM.DependencyInjection;

namespace StyleMVVM.DataService.DotNet.Service
{
	[Export(typeof(IDataAccessServiceAdapter<,>))]
	public class DataAccessServiceAdapter<TKey, TData> : IDataAccessServiceAdapter<TKey,TData>
	{
		private IDependencyInjectionContainer container;
		private IDataAccessSerializer dataAccessSerializer;

		public DataAccessServiceAdapter(IDependencyInjectionContainer container, IDataAccessSerializer dataAccessSerializer)
		{
			this.container = container;
			this.dataAccessSerializer = dataAccessSerializer;
		}

		public string GetData(string request)
		{
			dataAccessSerializer.Deserialize(request, typeof(TData));

			return null;
		}

		public string UpdateData(string request)
		{
			throw new NotImplementedException();
		}
	}
}
